package com.bruce.modelscope.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.Data;

@Data
@Component
@ConfigurationProperties(prefix = "modelscope")
public class ModelScopeProperties {

     /**API base url */
    private String baseUrl = "https://dashscope.aliyuncs.com/compatible-mode/v1";
    /** API key*/
    private String apiKey;
    /** 模型名称*/
    private String modelName = "qwen-max" ;
    /** 模型参数*/
    private Double temperature = 0.7;
    /** 最大token 数*/
    private Integer maxTokens = 1024;
     /** 请求超时时间*/
    private Long timeOut = 60000L;

    /** 最大重试次数*/
    private Integer maxRetries = 3;

    /** 是否打印请求信息*/
    private Boolean logRequests = true ;

    /** 是否打印响应信息*/
    private Boolean logResponses = true ;

    /** 是否启用*/
    private Boolean enabled = true;

}
